home *** CD-ROM | disk | FTP | other *** search
/ Clickx 44 / Clickx 44.iso / assets / swf / start.swf / scripts / __Packages / clickx / util / ButtonUtil.as next >
Encoding:
Text File  |  2007-01-01  |  2.9 KB  |  107 lines

  1. var ┬º\x01┬º = 519;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 519)
  5.    {
  6.       set("\x01",eval("\x01") - 409);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") != 110)
  12.       {
  13.          break;
  14.       }
  15.       set("\x01",eval("\x01") + 128);
  16.       if(┬º┬ºpop())
  17.       {
  18.          set("\x01",eval("\x01") + 303);
  19.       }
  20.    }
  21. }
  22. if(eval("\x01") == 238)
  23. {
  24.    set("\x01",eval("\x01") + 303);
  25.    prevFrame();
  26. }
  27. else if(eval("\x01") == 541)
  28. {
  29.    set("\x01",eval("\x01") + 183);
  30.    if(!_global.clickx)
  31.    {
  32.       _global.clickx = new Object();
  33.    }
  34.    ┬º┬ºpop();
  35.    if(!_global.clickx.util)
  36.    {
  37.       _global.clickx.util = new Object();
  38.    }
  39.    ┬º┬ºpop();
  40.    if(!_global.clickx.util.ButtonUtil)
  41.    {
  42.       var _loc2_ = clickx.util.ButtonUtil = function()
  43.       {
  44.       }.prototype;
  45.       clickx.util.ButtonUtil = function()
  46.       {
  47.       }.makeFrame_R_O_Effect = function(targetClip, frames)
  48.       {
  49.          if(targetClip.frameBeacon != undefined)
  50.          {
  51.             targetClip.frameBeacon.removeMovieClip();
  52.          }
  53.          targetClip.createEmptyMovieClip("frameBeacon",targetClip.getNextHighestDepth());
  54.          targetClip.frameBeacon._frameCount = frames;
  55.          targetClip.onRollOver = function()
  56.          {
  57.             this.frameBeacon.onEnterFrame = function()
  58.             {
  59.                if(this._parent._currentframe < this._frameCount)
  60.                {
  61.                   this._parent.gotoAndStop(this._parent._currentframe + 1);
  62.                }
  63.                else
  64.                {
  65.                   delete this.onEnterFrame;
  66.                }
  67.             };
  68.          };
  69.          targetClip.onRollOut = targetClip.onReleaseOutside = function()
  70.          {
  71.             this.frameBeacon.onEnterFrame = function()
  72.             {
  73.                if(this._parent._currentframe > 1)
  74.                {
  75.                   this._parent.gotoAndStop(this._parent._currentframe - 1);
  76.                }
  77.                else
  78.                {
  79.                   delete this.onEnterFrame;
  80.                }
  81.             };
  82.          };
  83.       };
  84.       clickx.util.ButtonUtil = function()
  85.       {
  86.       }.makeTextField_R_O_Effect = function(targetClip, idleField, overField)
  87.       {
  88.          targetClip[idleField]._visible = true;
  89.          targetClip[overField]._visible = false;
  90.          targetClip._idleField = idleField;
  91.          targetClip._overField = overField;
  92.          targetClip.onRollOver = function()
  93.          {
  94.             this[this._idleField]._visible = false;
  95.             this[this._overField]._visible = true;
  96.          };
  97.          targetClip.onRollOut = targetClip.onReleaseOutside = function()
  98.          {
  99.             this[this._idleField]._visible = true;
  100.             this[this._overField]._visible = false;
  101.          };
  102.       };
  103.       ┬º┬ºpush(ASSetPropFlags(clickx.util.ButtonUtil.prototype,null,1));
  104.    }
  105.    ┬º┬ºpop();
  106. }
  107.